package com.massa.caronafacil;

import android.app.Application;
import android.content.Context;

/**
 * TabsViewPager Application.
 */
public class TabsViewPagerApplication extends Application {

    /** Application context. */
    private static Context sAppContext;

    /**
     * Constructor.
     */
    public TabsViewPagerApplication() {
        super();

        storeAppContext(this);
    }

    /**
     * Holds Application Context.
     *
     * @param appContext
     *            the application's context.
     */
    public static void storeAppContext(final Context appContext) {
        sAppContext = appContext;
    }

    /**
     * Returns the application singleton that can be used to reference the application context.
     *
     * @return the application singleton that can be used to reference the application context.
     */
    public static Context getAppContext() {
        return sAppContext;
    }
}
